<script setup>
import { inject } from 'vue';

  const money = inject('m')
</script>

<template>
  <div class="my-child">
    <h3>MyChild组件</h3>
    <p>嘻嘻我今年的零花钱是 {{ money }} ￥</p>
  </div>
</template>


<style scoped>
  .my-child {
    padding: 20px;
    background-color: #05b1cf;
  }
</style>